package org.ltc.alliance.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.ltc.alliance.constant.PowerConst;
import org.ltc.alliance.model.PowerDomain;

import java.util.List;

@Mapper
public interface PowerDao {
    PowerDomain getPowerDomainByUidAndCid(@Param("uid") Integer uid, @Param("cid") Integer cid);
    PowerConst getPowerByUidAndCid(@Param("uid") Integer uid, @Param("cid") Integer cid);
    List<PowerDomain> getPowerDomainListByUid(Integer uid);
    List<PowerDomain> getPowerDomainListByCid(Integer cid);
    void savePowerInfo(PowerDomain powerDomain);
    void alterPower(PowerDomain powerDomain);

}
